﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SqlAntlr
{
    public class Order
    {
        public enum Ordering { ASC, DESC };

        Column column;
        Ordering order;

        public Order(Column c, Ordering ord)
        {
            column = c; order = ord;
        }

        public Ordering getOrder() { return order; }
        public Column getColumn() { return column; }

        public String toString()
        {
            return String.Format("{0} {1}", column, order);
        }
    }
}
